<?php
//if(0){
  $string = "weekend php weekend php weekend php";
  /*
   * String Length
   * */
  $strLen = strlen($string);
  echo "The length of string is $strLen";
  echo "\n------------\n";
  var_dump($string);
  echo "\n------------\n";

  /*
   * Replace php with zend
   * */

  $newString = str_replace('php','zend',$string, $count);
  echo "After replace 'php' with 'zend' string is => $newString";
  echo "\n------------\n";
  echo $count;

//}


  /*
   * Check 'week' is present in that string
   * */
    $string = "weekend php";
    $pos = strpos($string, 'week');

    //if(false == false)
    if($pos === false){
      echo "\n\n Fail :( \n\n";
    } else {
      echo " \n\n Success :) \n\n";
    }


    echo "\n------------\n";

    var_dump(0 == false);
    var_dump(0 === false);
    var_dump(11 == '11');
    var_dump(11 === '11');

    $string = "weekend php";
    echo $string[4];






